[Prometheus] Remove shared project and move the shared code under listener project#3503
Conversation
| <Compile Include="$(RepoRoot)\src\OpenTelemetry.Exporter.Prometheus.Shared\PrometheusExporterOptions.cs" Link="Includes/PrometheusExporterOptions.cs" /> | ||
| <Compile Include="$(RepoRoot)\src\OpenTelemetry.Exporter.Prometheus.Shared\PrometheusSerializer.cs" Link="Includes/PrometheusSerializer.cs" /> | ||
| <Compile Include="$(RepoRoot)\src\OpenTelemetry.Exporter.Prometheus.Shared\PrometheusSerializerExt.cs" Link="Includes/PrometheusSerializerExt.cs" /> | ||
| <Compile Include="$(RepoRoot)\src\OpenTelemetry.Exporter.Prometheus.HttpListener\PrometheusCollectionManager.cs" Link="Includes/PrometheusCollectionManager.cs" /> |
There was a problem hiding this comment.
Maybe put these files under a folder named Shared or Internal?
There was a problem hiding this comment.
I've moved the shared files between AspNetCore and the HttpListener projects that reside in the OpenTelemetry.Exporter.Prometheus.HttpListener project to a folder called Shared. And from the AspNetCore project, grouped the referenced shared files in the Include folder.
|
Are the shared code actually removed from |
reyang
left a comment
There was a problem hiding this comment.
Approving given it is better than the current layout. I think the public class under shared folder is something that should be fixed in the next PR.
It is now :-) |
Related to:
#3430 (comment)
#3497 (comment)
#3430 (comment)
Changes
Trying out another project setup for prometheus.
Move the files that were previously in
OpenTelemetry.Exporter.Prometheus.Sharedto be under theOpenTelemetry.Exporter.Prometheus.HttpListenerproject.And removed
OpenTelemetry.Exporter.Prometheus.Sharedproject and its corresponding test project.OpenTelemetry.Exporter.Prometheus.AspNetCorenow reference the shared code from the listener project.For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes